using System;
using JoyfulHomeJourney.BackEnd.Infrastructure.EFCore;
using JoyfulHomeJourney.BackEnd.Infrastructure.Dtos.Requests.Objects;
namespace JoyfulHomeJourney.BackEnd.Server.Instances.Extends.Requests
{
	public static class EntityPointsLogsCreateExtend
{
		public static PointsLogs ToCreateEntity(this RequestPointsLogsDto dto)
		{
			return new PointsLogs
			{
				PlLogDescription = dto.logDescription,
				PlPointProductId = dto.pointProductId,
				PlPointsChangeCount = dto.pointsChangeCount,
				PlUser = dto.user,
			};
		}
	}
}
